<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/



Route::group(['middleware' => 'rbac'], function () {
    Route::get('order/list', 'Order\ListController@index')->name('order.view');
    Route::put('order/list/export', 'Order\ListController@export')->name('order.export');
    Route::put('order/list/export_tracking', 'Order\ListController@export_tracking')->name('order.export');
    Route::post('order/list/import', 'Order\ListController@import')->name('order.import');
    Route::get('order/list/redeclare/{id}', 'Order\ListController@redeclare')->name('order.redeclare');
});
